package com.ma.fees;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.ma.R;
import com.ma.workorder.FeedbackActivity;

import java.util.ArrayList;
import java.util.List;

import base.BaseActivity;
import lomasky.xui.BaseViewHolder;
import lomasky.xui.RecyclerViewAdapter;

/**
 * Created by loma on 2017/10/20.
 */
public class FeesRecordInfoActivity extends BaseActivity {

    private RecyclerView mRecyclerView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fees_record_info);
        initView();
    }

    private void initView() {

        mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));//线性布局
        RecyclerViewAdapter  adapter = new RecyclerViewAdapter<FeesRecordInfo>(this,R.layout.fees_record_info_item) {
            @Override
            public void onBind(BaseViewHolder holder, FeesRecordInfo item, int position) {

            }
        };
        //填充数据
        List<FeesRecordInfo> list = new ArrayList<>();
        list.add(new FeesRecordInfo());list.add(new FeesRecordInfo());list.add(new FeesRecordInfo());
        adapter.setData(list);
        mRecyclerView.setAdapter(adapter );
    }

    public class FeesRecordInfo {

        private String months;
        private String name;
        private float money;

        public float getMoney() {
            return money;
        }

        public void setMoney(float money) {
            this.money = money;
        }

        public String getMonths() {
            return months;
        }

        public void setMonths(String months) {
            this.months = months;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }


    }
}
